// 常见的用户名部分
const userNames = [
    'zhangsan', 'lisi', 'wangwu', 'zhao6', 'qian7', 'sun8', 'li9', 'zhou10', 'wu11', 'zheng12',
    'wang13', 'feng14', 'chen15', 'chu16', 'wei17', 'jiang18', 'shen19', 'han20', 'yang21', 'zhao22',
    'john', 'jane', 'mike', 'sara', 'david', 'emily', 'andrew', 'lucy', 'peter', 'alice',
    'alex', 'beth', 'carl', 'diana', 'eric', 'frank', 'george', 'helen', 'ian', 'jessica',
    'karen', 'louis', 'mark', 'nancy', 'oliver', 'paul', 'quentin', 'rachel', 'steven', 'tina',
    'user123', 'admin456', 'test789', 'guest000', 'member111', 'visitor222', 'client333', 'customer444',
    'employee555', 'manager666', 'support777', 'service888', 'info999', 'contact000', 'help111',
    'sales222', 'marketing333', 'finance444', 'hr555', 'it666', 'dev777', 'ops888', 'qa999',
    'project111', 'team222', 'group333', 'company444', 'office555', 'department666', 'division777',
    'section888', 'unit999', 'branch000', 'chapter111', 'chapter222', 'chapter333', 'chapter444',
    'chapter555', 'chapter666', 'chapter777', 'chapter888', 'chapter999', 'chapter000',
    'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa',
    'lambda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigma', 'tau', 'upsilon', 'phi', 'chi', 'psi', 'omega'
];

// 常见的域名部分
const domains = [
    'gmail.com', 'yahoo.com', 'hotmail.com', 'outlook.com', '163.com', 'qq.com', 'sina.com', 'sohu.com',
    'aliyun.com', 'icloud.com', 'foxmail.com', '126.com', '139.com', 'yeah.net', '189.com', '263.net',
    'aol.com', 'msn.com', 'me.com', 'mac.com', 'protonmail.com', 'mail.ru', 'yandex.com', 'naver.com',
    'daum.net', 'nate.com', 'gmx.de', 'web.de', 't-online.de', 'freenet.de', 'arcor.de', 'embarqmail.com',
    'comcast.net', 'verizon.net', 'att.net', 'bellsouth.net', 'charter.net', 'cox.net', 'earthlink.net',
    'juno.com', 'optonline.net', 'sbcglobal.net', 'yahoo.co.uk', 'yahoo.fr', 'yahoo.de', 'yahoo.it',
    'yahoo.es', 'yahoo.co.jp', 'yahoo.com.au', 'yahoo.com.br', 'yahoo.com.cn', 'yahoo.com.hk', 'yahoo.com.sg',
    'yahoo.com.tw', 'yahoo.com.tr', 'yahoo.com.ar', 'yahoo.com.mx', 'yahoo.com.my', 'yahoo.com.ph', 'yahoo.com.vn'
];

/**
 * @desc 生成邮箱地址
 */
function randomEmail() {
    // 生成随机用户名
    const randomUserName = userNames[Math.floor(Math.random() * userNames.length)];

    // 生成随机域名
    const randomDomain = domains[Math.floor(Math.random() * domains.length)];

    // 组合成完整的邮箱地址
    const email = `${randomUserName}@${randomDomain}`;

    return email;
}

export { randomEmail };